package com.jilintongyi.jlcrtvu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jilintongyi.jlcrtvu.entity.SysLog;
import com.jilintongyi.jlcrtvu.reponsitory.LogReponsitory;
import com.jilintongyi.jlcrtvu.service.LogService;

/**
 * 日志服务接口实现类
 */
@Service
public class LogServiceImpl extends BaseServiceImpl implements LogService {
	@Autowired
	private LogReponsitory logReponsitory;

	/**
	 * 保存日志
	 * 
	 * @param log
	 * @return
	 */
	public SysLog save(SysLog log) {
		logReponsitory.saveAndFlush(log);
		return log;
	}
}
